import { director,Node } from "cc";

/**
 * 游戏世界管理
 */
export class GameManager {
    root!:Node;
    constructor(node:Node){
        this.root = node;
    }
    setTimeScale(scale:number){
         //@ts-ignore
        director.globalGameTimeScale = scale;
    }
    getTimeScale():number{
         //@ts-ignore
        return director.globalGameTimeScale;
    }
}